home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / c_toolbx.arc / MERGE1.H < prev    next >
Encoding:
C/C++ Source or Header  |  1988-03-30  |  694 b   |  23 lines

  1. /* merge1.h - constants and data types for merge1 program */
  2.  
  3. /* constants for 1st stage - forming runs */
  4. #define    SSIZE     20000    /* size of storage area for text */
  5. #define    MAX_REC   2000    /* max. number of records */
  6. #define    MAX_RSIZE 500    /* max. size for a record */
  7.  
  8. /* return values for fillarea */
  9. #define    NOT_EOF   0        /* end-of-file not reached */
  10. #define    AT_EOF    1        /* end-of-file reached */
  11.  
  12. /* merge constants and data */
  13.  
  14. #define    MAX_MERGE  4      /* no. of runs to merge at a time */
  15.  
  16. typedef struct            /* merge data for one input run */
  17.   {  FILE  *inf ;        /* file pointer */
  18.      char  *pbuf ;        /* address of record buffer */
  19.   }  MDATA ;
  20.  
  21.  
  22.  
  23.